<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>修改用户密码</title>
  <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
  <link rel="stylesheet" href="/assets/css/user/user_pwd.css">
</head>

<body>
  <div class="layui-card">
    <div class="layui-card-header">修改用户密码</div>
    <div class="layui-card-body">
      <!-- 修改用户密码的表单 -->
      <form class="layui-form" lay-filter="userForm">
        <!-- 旧密码 -->
        <div class="layui-form-item">
          <label class="layui-form-label">旧密码</label>
          <div class="layui-input-block">
            <input type="password" name="oldPwd" required lay-verify="pwd" placeholder="请输入旧密码" autocomplete="off"
              class="layui-input">
          </div>
        </div>
        <!-- 新密码 -->
        <div class="layui-form-item">
          <label class="layui-form-label">新密码</label>
          <div class="layui-input-block">
            <input type="password" name="newPwd" required lay-verify="pwd|samepwd" placeholder="请输入新密码"
              autocomplete="off" class="layui-input">
          </div>
        </div>
        <!-- 确认密码 -->
        <div class="layui-form-item">
          <label class="layui-form-label">确认密码</label>
          <div class="layui-input-block">
            <input type="password" name="rePwd" required lay-verify="pwd|confirmpwd" placeholder="请输入确认密码"
              autocomplete="off" class="layui-input">
          </div>
        </div>
        <!-- 表单按钮 -->
        <div class="layui-form-item">
          <div class="layui-input-block">
            <button class="layui-btn" lay-submit>立即修改</button>
            <!-- 表单中的 重置类型 按钮，在点击时，默认行为 就是 重置所在表单数据 -->
            <button id="btnReset" type="reset" class="layui-btn layui-btn-primary">重置</button>
          </div>
        </div>
      </form>
    </div>
  </div>

  <!-- 导入 layui js文件 -->
  <script src="/assets/lib/layui/layui.js"></script>
  <script src="/assets/lib/jquery.js"></script>
  <script src="/assets/js/baseAPI.js"></script>
  <script src="/assets/js/user/user_pwd.js"></script>

</body>

</html>